<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>统计图表系统</title>
    <link rel="stylesheet" href="./css/styles.css">
</head>
<body>
<div class="wrapper">
    <!-- 左侧面板 -->
    <aside class="sidebar">
        <h2>功能选项</h2>
        <button id="addData">添加数据</button>
        <button id="settings">设置</button>
        <button id="view">重置</button>
        <div class="system-info">
        </div>
        <div id="dataForm"></div>
    </aside>

    <!-- 右侧图表展示 -->
    <main class="content">
        <div id="chartContainer">
            <canvas id="chartCanvas"></canvas>
        </div>
        <div class="footer">
            <div class="toggle-buttons">
                <button id="showMaleOnly" class="toggle-button">仅男生</button>
                <button id="showFemaleOnly" class="toggle-button">仅女生</button>
            </div>
            <span>版权所有 © 2025 WwPT · 禁止二次升级及启动指南</span>
        </div>
    </main>
    <div id="settingsModal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h3>图表设置</h3>
            <div class="color-picker">
                <label for="maleColor">男生颜色:</label>
                <input type="color" id="maleColor" value="#36a2eb">
                
                <label for="femaleColor">女生颜色:</label>
                <input type="color" id="femaleColor" value="#ff6384">
                
                <button id="applyColors">应用颜色</button>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="./js/script.js"></script>
</body>
</html>